package cn.jiyun.feign;

import cn.jiyun.entity.day11.TeamDto;
import cn.jiyun.utils.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Title: UserFeign
 * @Author 王鸽
 * @Date 2023/8/22 10:54
 */
@FeignClient(name = "p11-day14-auser")
public interface UserFeign {
    @RequestMapping("/user/findAllUser")
     public ResultResponse findAllUser();
    @RequestMapping("/user/login")
    public ResultResponse login(@RequestParam("username") String username, @RequestParam("password") String password);
    @RequestMapping("/user/findAllTeam")
    public ResultResponse findAllTeam(@RequestBody TeamDto teamDto);
    @RequestMapping("/user/findDept")
    public ResultResponse findDept();
}
